package com.ljxy.score.controller.myController;

import com.ljxy.score.common.Result;
import com.ljxy.score.entity.domain.mycourse;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

@RestController
@RequestMapping("/my_course")
public class MyCourseController {
    @Resource
    private com.ljxy.score.service.mycourseService mycourseService;

    @RequestMapping("/all")
    public Result<?> all() {
        List<mycourse> list = mycourseService.list();
        return Result.success(list);
    }
}
